home *** CD-ROM | disk | FTP | other *** search
- Path: castle.nando.net!news
- From: xyzzy@nando.net (Andy Philpotts)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Copy with c
- Date: 14 Mar 1996 01:14:51 GMT
- Organization: Nando.net Public Access
- Message-ID: <568.6646T1205T2413@nando.net>
- References: <660.6643T24T753@enterprise.net>
- NNTP-Posting-Host: grail2813.nando.net
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- Mark Smith said:
- >How do i get a program to copy a file, that will be in the same
-
- Simple question, many answers. There is no built in way to copy a file in C
- (in fact no builtin IO at all in C ). The "standard" C libraries provide no
- copy function but of course you could fabricate this yourself with "open",
- "read", "write" and "close".
-
- An alternate way is to take advantage of the ability to run an external
- program ( copy?) from within "C" ( using the "system" call).
-
- It is possible AmigaDOS is richer, but then your code is less portable.
-
- --
- Andy Philpotts
-
-